var homeUrl = "https://www.baidu.com";

function backgroundAnim(a, b) {
    FSS(a, b);
}

function goHome() {
    window.location.href = homeUrl;
}

function goAnchor(id) {
    var offset = $(id).offset().top - 90;
    if (offset != 0)
        $('#content').animate({scrollTop: offset}, 500);
}

function playVideo(id) {
    var video = document.getElementById(id);
    video.play();
}

function stopVideo(id) {
    var video = document.getElementById(id);
    video.pause();
    video.currentTime = 0;
}